package edu.sctu.practice.class02.yangyuran.test13;

/**
 * Created by Administrator on 2015/10/12.
 */
public class ThreeNumbers {

    public ThreeNumbers(int a, int b) {
        if (a > b) {
            System.out.println("较大的值为：" + a);
        } else {
            System.out.println("较大值为：" + b);
        }
    }


    public ThreeNumbers(double a, double b, double c) {
        double values;
        values = a * b * c;
        System.out.println("三个数的为：" + values);
    }


    public ThreeNumbers(String a, String b) {
        if (a == b) {
            System.out.println("两个字符串相同");
        } else {
            System.out.println("两个字符串不同");
        }
    }


    public static void main(String[] args) {

        ThreeNumbers in = new ThreeNumbers(2, 3);
        ThreeNumbers dou = new ThreeNumbers(2.1, 3.1, 4.1);
        ThreeNumbers st = new ThreeNumbers("SDFSG", "SDFW");
    }
}
